import { defHttp } from '@/utils/http/axios'

enum Api {
  sceneTree = `/scene/treeAlarm`,
  deviceAlarm = '/device/manage/alarm',
  dealCount = '/alarm/record/dealCount',
  typeCount = '/alarm/record/typeCount',
  alarmTypeList = '/alarm/type/listOption',
}

export const getSceneTree = (params) => defHttp.get({ url: Api.sceneTree, params })
export const getDeviceAlarm = (params) => defHttp.get({ url: Api.deviceAlarm, params })
export const getDealCount = (params) => defHttp.get({ url: Api.dealCount, params })
export const getTypeCount = (params) => defHttp.get({ url: Api.typeCount, params })
export const getAlarmTypeList = () => defHttp.get({ url: Api.alarmTypeList })
